package com.gh.elm.model;
/*
 * 订单类；
 */
public class Order {
	private String orderNum;//订单编号
	private String foodName;//菜品的名称；
	private String uname; //用户的名称；
	private String odate; //订餐时间；
	private String address ; //地址；
	private int foodNum ; //份数；
	private double money; //金额；
	private int states; // 状态   0  已预订     1 已完成；
	private int oNum;  //订单编号；
	
	public Order(){
		long date = System.currentTimeMillis();
		//输出date;
		this.oNum = (int)date;
	}
	//查询所有订单
	public void findAll(Order[] orders){
		for (int i = 0; i < orders.length; i++) {
			if (orders[i] != null) {
				System.out.println((i+1)+"\t"+orders[i].getFoodName()+"\t"+orders[i].getFoodNum()+"\t"+orders[i].getMoney()+"\t"+orders[i].getUname()+"\t"+orders[i].getOdate()+"\t"+orders[i].getAddress()+"\t"+orders[i].getStates());
			}
		}
	}
	
	
	
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getOdate() {
		return odate;
	}
	public void setOdate(String odate) {
		this.odate = odate;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getFoodNum() {
		return foodNum;
	}
	public void setFoodNum(int foodNum) {
		this.foodNum = foodNum;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public int getStates() {
		return states;
	}
	public void setStates(int states) {
		this.states = states;
	}
	
}
